package com.bw.day03.util

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

object LoadImage {
    //加载图片
    @JvmStatic
    @BindingAdapter("img_url")
    fun ImageLoad(view:ImageView, url:String?){
        if (url!=null){
            Glide.with(view.context).load(url).into(view)
        }
    }
}